package T5;

public class Circle {
double radius;
double PI=3.14;

    public Circle(double radius) {
        this.radius = radius;
    }

    public final double area(){
    double ar=0;
    ar=PI*(double)Math.pow(radius,2);
    return ar;
}
public double perimneter(){
    double pe=0;
    pe=2*PI*radius;
    return pe;
}

    public static void main(String[] args) {
        Circle c1=new Circle(10);
        System.out.println( c1.area());
        Circle c2=new Circle(20);
        System.out.println(c2.perimneter());
    }
}
